package tinglema.server.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

/**
 * 收藏(Collect)表实体类
 *
 * @author delucia
 * @since 2025-03-25 10:26:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Collect extends Model<Collect> {
    //收藏ID 唯一标识符
    private Integer id;
    //用户ID 关联consumer.id
    private Integer userId;
    //类型 1:歌曲 2:歌单
    private Integer type;
    //歌曲ID 关联song.id
    private Integer songId;
    //歌单ID 关联song_list.id
    private Integer songListId;
    //创建时间 收藏时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}

